<%@page import="models.Domain"%>
<%@page import="java.util.ArrayList"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%
Cache cache=null;
try {
    cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
   e.printStackTrace();
   
}
ArrayList<String> siteview = null;
if(cache.containsKey("updates"))
{
	siteview = (ArrayList<String>) cache.get("updates");
}
%>

<div class="bol">
	<div class="rib">
		<h2><a href="/list" class="white font">Recent site update</a></h2>
	</div>
	<ul class="bolr">
		<%
		if(siteview!=null)
		{
		for(int i=0;i<siteview.size();i++)
		{
		%>
		<li><a href="/sites/<%=siteview.get(i)%>"><%=siteview.get(i)%></a></li>
		<%
		}
		}
		%>
	</ul>
</div>
